

using MoMing.VideoTool.Uploader.Extensions.MoMing.VideoTool.API.Extensions;

var builder = WebApplication.CreateBuilder(args);


builder.AddServiceDefaults();
builder.AddApplicationServices();
builder.Services.AddProblemDetails();

var withApiVersioning = builder.Services.AddApiVersioning();

builder.AddDefaultOpenApi(withApiVersioning);

var app = builder.Build();


app.MapDefaultEndpoints();
var moMingVideoToolApi = app.NewVersionedApi();

// moMingVideoToolApi.MapVideoToolApiV1()
//       .RequireAuthorization();

app.UseDefaultOpenApi();
app.Run();
